package dto;

import implementor.TransactionCategoryDaoImplementor;

import java.sql.Date;
import java.sql.SQLException;

import daoInterface.TransactionCategoryDao;

public class Transactions
{
private int autoTransactionId;
private int transCatId;
private double amt;
private Date date;
private int status;
private String comments;
private int balancePaymentId;

// Model Attributes
private TransactionCategory modelTransCat;

public Transactions(){
	
}
public Transactions(int autoTransactionId,int transCatId,double amt,Date date,int status,String comments,int balancePaymentId)
{
this.autoTransactionId=autoTransactionId;
this.transCatId=transCatId;
this.amt=amt;
this.date=date;
this.status=status;
this.comments=comments;
this.balancePaymentId=balancePaymentId;
}
/************************************************************/
public void setTransactionCategory()
{
	TransactionCategoryDao catdao=new TransactionCategoryDaoImplementor();
	try {
		modelTransCat=catdao.retrieve("autoTransCatId", transCatId+"");
	} catch (SQLException e) {
	
		e.printStackTrace();
	} catch (Exception e) {
		e.printStackTrace();
	}
	
}
/************************************************************/
public void setautoTransactionId(int autoTransactionId)
{
this.autoTransactionId=autoTransactionId;
}


public int getautoTransactionId()
{
return autoTransactionId;
}
/************************************************************/
public void settransCatId(int transCatId)
{
this.transCatId=transCatId;
}


public int gettransCatId()
{
return transCatId;
}
/************************************************************/
public void setamt(double amt)
{
this.amt=amt;
}


public double getamt()
{
return amt;
}
/************************************************************/
public void setdate(Date date)
{
this.date=date;
}


public Date getdate()
{
return date;
}
/************************************************************/
public void setstatus(int status)
{
this.status=status;
}


public int getstatus()
{
return status;
}
/************************************************************/
public void setcomments(String comments)
{
this.comments=comments;
}


public String getcomments()
{
return comments;
}
/************************************************************/
public void setbalancePaymentId(int balancePaymentId)
{
this.balancePaymentId=balancePaymentId;
}


public int getbalancePaymentId()
{
return balancePaymentId;
}
/***********************************************************/
public TransactionCategory getModelTransCat() {
	return modelTransCat;
}
public void setModelTransCat(TransactionCategory modelTransCat) {
	this.modelTransCat = modelTransCat;
}



}
